(function(win){
    var b = 3;
    win.test2 = function(){
        test1();
    };
})(window);
